import java.util.Scanner;

public class program8 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("Enter the time zone offset to GMT: ");
        int offset = in.nextInt();
        long totalMillis = System.currentTimeMillis();
        long totalSec = totalMillis / 1000;
        long currSec = totalSec % 60;
        long totalMin = totalSec / 60;
        long currMin = totalMin % 60;
        long totalHour = totalMin / 60;
        long currHour = (totalHour + offset) % 24;
        if (currHour < 0) currHour += 24;
        System.out.printf("The current time is %d:%02d:%02d%n",
                currHour, currMin, currSec);
    }
}